.class Lcom/xiaomi/notes/NoteListActivity$6$1;
.super Ljava/lang/Object;
.source "NoteListActivity.java"

# interfaces
.implements Landroid/content/DialogInterface$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/xiaomi/notes/NoteListActivity$6;->onClick(Landroid/view/View;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$1:Lcom/xiaomi/notes/NoteListActivity$6;

.field final synthetic val$adapter:Lcom/xiaomi/notes/AdapterNoteItem;


# direct methods
.method constructor <init>(Lcom/xiaomi/notes/NoteListActivity$6;Lcom/xiaomi/notes/AdapterNoteItem;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 565
    iput-object p1, p0, Lcom/xiaomi/notes/NoteListActivity$6$1;->this$1:Lcom/xiaomi/notes/NoteListActivity$6;

    iput-object p2, p0, Lcom/xiaomi/notes/NoteListActivity$6$1;->val$adapter:Lcom/xiaomi/notes/AdapterNoteItem;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/content/DialogInterface;I)V
    .locals 9
    .parameter "dialog"
    .parameter "which"

    .prologue
    .line 568
    iget-object v5, p0, Lcom/xiaomi/notes/NoteListActivity$6$1;->val$adapter:Lcom/xiaomi/notes/AdapterNoteItem;

    invoke-virtual {v5, p2}, Lcom/xiaomi/notes/AdapterNoteItem;->getItemId(I)J

    move-result-wide v0

    .line 569
    .local v0, foldId:J
    iget-object v5, p0, Lcom/xiaomi/notes/NoteListActivity$6$1;->val$adapter:Lcom/xiaomi/notes/AdapterNoteItem;

    invoke-virtual {v5}, Lcom/xiaomi/notes/AdapterNoteItem;->getVectorEditFlag()Ljava/util/Set;

    move-result-object v4

    .line 570
    .local v4, vct:Ljava/util/Set;,"Ljava/util/Set<Ljava/lang/Integer;>;"
    invoke-interface {v4}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object v3

    .line 571
    .local v3, it:Ljava/util/Iterator;,"Ljava/util/Iterator<Ljava/lang/Integer;>;"
    :cond_0
    :goto_0
    invoke-interface {v3}, Ljava/util/Iterator;->hasNext()Z

    move-result v5

    if-eqz v5, :cond_1

    .line 572
    invoke-interface {v3}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v5

    check-cast v5, Ljava/lang/Integer;

    invoke-virtual {v5}, Ljava/lang/Integer;->intValue()I

    move-result v2

    .line 573
    .local v2, id:I
    invoke-static {v2}, Lcom/xiaomi/notes/NoteListActivity;->isFolder(I)Z

    move-result v5

    if-nez v5, :cond_0

    .line 574
    iget-object v5, p0, Lcom/xiaomi/notes/NoteListActivity$6$1;->this$1:Lcom/xiaomi/notes/NoteListActivity$6;

    iget-object v5, v5, Lcom/xiaomi/notes/NoteListActivity$6;->this$0:Lcom/xiaomi/notes/NoteListActivity;

    invoke-static {v5}, Lcom/xiaomi/notes/NoteListActivity;->access$800(Lcom/xiaomi/notes/NoteListActivity;)Lcom/xiaomi/notes/DBOperate;

    move-result-object v5

    int-to-long v6, v2

    long-to-int v8, v0

    invoke-static {v8}, Lcom/xiaomi/notes/NoteListActivity;->getFolderIdFromDBID(I)I

    move-result v8

    invoke-virtual {v5, v6, v7, v8}, Lcom/xiaomi/notes/DBOperate;->updateNote(JI)V

    goto :goto_0

    .line 578
    .end local v2           #id:I
    :cond_1
    iget-object v5, p0, Lcom/xiaomi/notes/NoteListActivity$6$1;->this$1:Lcom/xiaomi/notes/NoteListActivity$6;

    iget-object v5, v5, Lcom/xiaomi/notes/NoteListActivity$6;->this$0:Lcom/xiaomi/notes/NoteListActivity;

    iget-object v6, p0, Lcom/xiaomi/notes/NoteListActivity$6$1;->this$1:Lcom/xiaomi/notes/NoteListActivity$6;

    iget-object v6, v6, Lcom/xiaomi/notes/NoteListActivity$6;->this$0:Lcom/xiaomi/notes/NoteListActivity;

    invoke-static {v6}, Lcom/xiaomi/notes/NoteListActivity;->access$1000(Lcom/xiaomi/notes/NoteListActivity;)I

    move-result v6

    invoke-virtual {v5, v6}, Lcom/xiaomi/notes/NoteListActivity;->setState(I)V

    .line 579
    return-void
.end method
